package com.dhl.composite;

/**
 * @title: OrganizationComponent
 * @Author danghailiang
 * @Date: 2022/8/8 22:08
 * @Version 1.0
 */
public abstract class OrganizationComponent {

    private String name;
    private String des;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public OrganizationComponent(String name, String des) {
        this.name = name;
        this.des = des;
    }

    public boolean add(OrganizationComponent component) {
        return false;
    }

    public boolean remove(OrganizationComponent component) {
        return false;
    }

    public abstract void print();
}
